#ifndef QCOLOREDITORDIALOG_H
#define QCOLOREDITORDIALOG_H

#include "../qbasedialog.h"
#include <QVariant>

namespace Ui {
class QColorEditorDialog;
}

class QColorEditorDialog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QColorEditorDialog(const QVariant value,QWidget *parent = 0);
    ~QColorEditorDialog();
    
    int get_ret();
    QVariant    get_value();

    void    set_color_type();
private slots:
    void on_okBtn_clicked();

    void on_cancelBtn_clicked();

    void on_colorBtn_clicked();

    void on_gradientBtn_clicked();

protected:
    void    make_color();
private:
    Ui::QColorEditorDialog *ui;

protected:
    QVariant        m_value;
    int             m_ret;
};

#endif // QCOLOREDITORDIALOG_H
